Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
cf-component-link
Advanced tools
CloudFlare Link Component
$ npm install cf-component-link
const React = require('react');
const Link = require('../../src/index');
class Application extends React.Component {
render() {
return (
<div>
<h1>CloudFlare Link Component Example</h1>
<p>Create a <code>Link</code> with a <code>to</code> prop:</p>
<Link to="/">Link to /</Link>
<p>Alternatively you can pass an <code>onClick</code> handler:</p>
<Link onClick={this.handleClick}>Link to something</Link>
<p>Note: This will give it a <code>role="button"</code></p>
<p>All additional props will be added to the <code>Link</code> element:</p>
<Link to="/foo" className="special-link">Link to /foo</Link>
<p>You can even specify <code>tagName</code>:</p>
<Link to="/bar" tagName="button">Link to /bar</Link>
<p>Or <code>disable</code> the link and it wont do anything when clicked:</p>
<Link to="/bar" disabled>Link to /bar</Link>
</div>
);
}
}
Note: This requires that you setup
cf-util-route-handler
prior to routing.
FAQs
Cloudflare Link Component
The npm package cf-component-link receives a total of 1 weekly downloads. As such, cf-component-link popularity was classified as not popular.
We found that cf-component-link demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 23 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.